home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 1 / QRZ Ham Radio Callsign Database - December 1993.iso / ucsd / packet / tcpip / net / netamsrc.arc / makefile < prev    next >
Encoding:
Makefile  |  1988-02-12  |  6.5 KB  |  171 lines

  1. #
  2. #    Makefile for KA9Q TCP/IP package for PC clones with Aztec C
  3. #
  4. # switches:
  5. #    define the ones you want in the CFLAGS definition...
  6. #
  7. #    TRACE        - turn on tracing/debugging code
  8. #
  9. #    AMIGA        - include Amiga specific code
  10. #    MSDOS        - include Messy-Dos specific code
  11. #    UNIX        - Use UNIX file format conventions
  12. #    CPM        - Use CP/M file format conventions
  13.  
  14. #
  15. # CFLAGS for typical IBM-PC installation
  16. #
  17. # CFLAGS=    -DMSDOS +LC
  18. # Assembler flags
  19. # AFLAGS= -DMODEL=1
  20. # all:    net.exe
  21.     
  22. #
  23. # CFLAGS for typical Amiga installation
  24. #
  25. CFLAGS= -DTRACE -DAMIGA=1 +L +C +D +Inet.includes
  26. all:    net.amiga
  27.  
  28. .c.o:
  29.     cc $(CFLAGS) -o $@ $*.c
  30.  
  31. .asm.o:
  32.     as $(AFLAGS) -o $@ $*.asm
  33.  
  34. NETOBJS= telnet.o tnserv.o smisc.o \
  35.     ftpserv.o ftpcli.o ftp.o smtpserv.o smtpcli.o \
  36.     tcpcmd.o tcpuser.o tcptimer.o tcpout.o tcpin.o tcpsubr.o \
  37.     udpcmd.o udp.o \
  38.     ipcmd.o ip.o iproute.o \
  39.     icmpcmd.o icmp.o \
  40.     arpcmd.o arp.o \
  41.     ax25cmd.o ax25user.o ax25.o ax25subr.o lapbtime.o lapb.o \
  42.     eccmd.o ec.o enet.o \
  43.     slip.o kiss.o \
  44.     timer.o ttydriv.o cmdparse.o mbuf.o alloc.o netuser.o \
  45.     misc.o pathname.o audit.o files.o icmpmsg.o
  46.  
  47. NETDUMP = trace.o enetdump.o \
  48.     ax25dump.o arpdump.o ipdump.o icmpdump.o udpdump.o tcpdump.o
  49.  
  50. AOBJS= ax25cmd.o ax25user.o ax25.o ax25subr.o lapbtime.o lapb.o ax25dump.o \
  51.     slip.o kiss.o \
  52.     arpcmd.o arp.o \
  53.     ipcmd.o ip.o iproute.o lcsum.o \
  54.     icmpcmd.o icmp.o \
  55.     udpcmd.o udp.o \
  56.     tcpcmd.o tcpuser.o tcptimer.o tcpout.o tcpin.o tcpsubr.o \
  57.     ftpserv.o ftpcli.o ftp.o smtpserv.o smtpcli.o \
  58.     telnet.o tnserv.o smisc.o \
  59.     trace.o \
  60.     arpdump.o ipdump.o icmpdump.o udpdump.o tcpdump.o \
  61.     timer.o ttydriv.o cmdparse.o mbuf.o netuser.o \
  62.     misc.o files.o icmpmsg.o
  63.  
  64. PCOBJS= pc.o dirutil.o ec.o ecvec.o pc100.o pc100vec.o hapn.o hapnvec.o \
  65.     asy.o asyvec.o pcgen.o eagle.o eaglevec.o
  66.  
  67. AMOBJS=amiga.o amiga_ut.o dir.o amiga_pt.o
  68.  
  69. HFILES= amiga.h arp.h ax25.h cmdparse.h config.h dir.h \
  70.     ftp.h global.h icmp.h iface.h internet.h  ip.h kiss.h lapb.h \
  71.     mbuf.h netuser.h session.h slip.h smtp.h tcp.h telnet.h \
  72.     timer.h trace.h udp.h
  73.  
  74. net.amiga:    x.o $(AOBJS) $(AMOBJS) main.o version.o session.o
  75.     ln -w -o net.amiga main.o version.o session.o  $(AOBJS) $(AMOBJS) -lcl32
  76.  
  77. net.exe:  pc.lib net.lib dump.lib makefile main.o version.o session.o
  78.     ln -t -o net.exe main.o version.o session.o net.lib pc.lib dump.lib -lclc
  79.  
  80. objects: $(NETOBJS) $(PCOBJS)
  81.     
  82. x.o:    $(HFILES)
  83.     cc +C +L +D -DAMIGA +Hnet.includes x.c
  84.  
  85. net.lib: $(NETOBJS)
  86.     erase net.lib
  87.     lb net.lib $(NETOBJS)
  88.  
  89. dump.lib: $(NETDUMP)
  90.     erase dump.lib
  91.     lb dump.lib $(NETDUMP)
  92.  
  93. libka9q.a: $(NETOBJS)
  94.     ar rv libka9q.a $(NETOBJS)
  95.     ranlib libka9q.a
  96.  
  97. pc.lib: $(PCOBJS)
  98.     erase pc.lib
  99.     lb pc.lib $(PCOBJS)
  100.  
  101. clean:    
  102.     del *.lib
  103.     del *.o
  104.     del *.exe
  105.     del *.sym
  106.  
  107. arp.o: arp.c global.h mbuf.h timer.h iface.h enet.h ax25.h arp.h
  108. arpcmd.o: arpcmd.c global.h mbuf.h timer.h enet.h ax25.h arp.h cmdparse.h
  109. arpdump.o: arpdump.c global.h mbuf.h timer.h arp.h
  110. asy.o: asy.c global.h pc.h asy.h iface.h
  111. ax25.o: ax25.c global.h mbuf.h iface.h timer.h arp.h slip.h ax25.h lapb.h
  112. ax25cmd.o: ax25cmd.c global.h mbuf.h ax25.h timer.h iface.h lapb.h cmdparse.h session.h
  113. ax25dump.o: ax25dump.c global.h mbuf.h ax25.h timer.h lapb.h trace.h
  114. ax25subr.o: ax25subr.c global.h mbuf.h timer.h ax25.h lapb.h
  115. ax25user.o: ax25user.c global.h mbuf.h timer.h ax25.h lapb.h
  116. cmdparse.o: cmdparse.c global.h trace.h cmdparse.h
  117. eagle.o: eagle.c global.h mbuf.h iface.h eagle.h ax25.h
  118.     cc $(CFLAGS) -E300 eagle.c
  119. ec.o: ec.c global.h mbuf.h enet.h ec.h iface.h timer.h pc.h arp.h pc.h trace.h
  120. eccmd.o: eccmd.c global.h mbuf.h ec.h
  121. enet.o: enet.c global.h mbuf.h enet.h
  122. enetdump.o: enetdump.c global.h mbuf.h enet.h trace.h
  123. files.o: files.c
  124. ftp.o: ftp.c global.h mbuf.h netuser.h timer.h tcp.h ftp.h session.h
  125. ftpcli.o: ftpcli.c global.h mbuf.h netuser.h icmp.h timer.h tcp.h ftp.h session.h cmdparse.h
  126. ftpserv.o: ftpserv.c global.h mbuf.h netuser.h timer.h tcp.h ftp.h
  127. hapn.o: hapn.c global.h mbuf.h iface.h hapn.h ax25.h trace.h
  128. icmp.o: icmp.c global.h mbuf.h internet.h timer.h iface.h ip.h icmp.h
  129. icmpcmd.o: icmpcmd.c global.h icmp.h mbuf.h netuser.h internet.h timer.h ping.h
  130. icmpdump.o: icmpdump.c global.h mbuf.h internet.h icmp.h trace.h
  131. icmpmsg.o: icmpmsg.c global.h
  132. ip.o: ip.c global.h mbuf.h timer.h internet.h iface.h ip.h icmp.h
  133. ipcmd.o: ipcmd.c global.h mbuf.h internet.h timer.h netuser.h iface.h ip.h cmdparse.h
  134. ipdump.o: ipdump.c global.h mbuf.h internet.h timer.h iface.h ip.h trace.h netuser.h
  135. iproute.o: iproute.c global.h mbuf.h internet.h timer.h netuser.h ip.h icmp.h iface.h trace.h
  136. kiss.o: kiss.c global.h mbuf.h iface.h kiss.h
  137. lapb.o: lapb.c global.h mbuf.h timer.h ax25.h lapb.h
  138. lapbtime.o: lapbtime.c global.h mbuf.h ax25.h timer.h lapb.h
  139. lcsum.o: lcsum.c global.h
  140. # This next line is for the PC
  141. main.o: main.c config.h global.h mbuf.h netuser.h timer.h icmp.h iface.h ip.h tcp.h ftp.h telnet.h session.h cmdparse.h pc.h trace.h
  142. # and this is for the others
  143. #main.o: main.c config.h global.h mbuf.h netuser.h timer.h icmp.h iface.h ip.h tcp.h ftp.h telnet.h session.h cmdparse.h trace.h
  144. mbuf.o: mbuf.c global.h mbuf.h
  145. netuser.o: netuser.c global.h netuser.h
  146. pc.o: pc.c global.h mbuf.h internet.h iface.h cmdparse.h
  147. pc100.o: pc100.c global.h mbuf.h iface.h pc100.h ax25.h trace.h
  148. session.o: session.c config.h global.h mbuf.h netuser.h timer.h tcp.h ax25.h lapb.h ftp.h telnet.h session.h
  149. # This next line is for the PC
  150. slip.o: slip.c global.h mbuf.h iface.h ax25.h slip.h pc.h trace.h lapb.h arp.h
  151. # and this is for the others
  152. #slip.o: slip.c global.h mbuf.h iface.h ax25.h slip.h trace.h lapb.h arp.h
  153. smisc.o: smisc.c global.h mbuf.h netuser.h timer.h tcp.h
  154. smtpcli.o: smtpcli.c global.h netuser.h mbuf.h timer.h tcp.h smtp.h trace.h
  155. smtpserv.o: smtpserv.c global.h mbuf.h netuser.h timer.h tcp.h smtp.h
  156. tcpcmd.o: tcpcmd.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  157. tcpdump.o: tcpdump.c global.h mbuf.h netuser.h internet.h timer.h tcp.h trace.h
  158. tcpin.o: tcpin.c global.h timer.h mbuf.h netuser.h internet.h tcp.h icmp.h iface.h ip.h
  159. tcpout.o: tcpout.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  160. tcpsubr.o: tcpsubr.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  161. tcptimer.o: tcptimer.c global.h timer.h mbuf.h netuser.h internet.h ip.h tcp.h
  162. tcpuser.o: tcpuser.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  163. telnet.o: telnet.c global.h mbuf.h timer.h internet.h icmp.h netuser.h tcp.h telnet.h session.h
  164. tnserv.o: tnserv.c global.h mbuf.h timer.h internet.h icmp.h netuser.h tcp.h telnet.h session.h
  165. trace.o: global.h mbuf.h iface.h trace.h
  166. timer.o: timer.c global.h timer.h
  167. udp.o: udp.c global.h mbuf.h netuser.h udp.h internet.h
  168. udpcmd.o: udpcmd.c global.h mbuf.h netuser.h udp.h internet.h
  169. udpdump.o: udpdump.c global.h mbuf.h netuser.h internet.h udp.h
  170. version.o: version.c
  171.